fix so that environment gets user from self