moving the rest of the remote code from installer to app