set env for $HOME, set user and fix dupe require