add ability to inject environment variables, remove unnecessary sudo