removed duplicate code
change to home directory on startup