emu and user permission fixes