some smaller cleanups and fix for rebooting ar7