updated to remove hard coded home dir