minor changes to add dotenv to cap