added a check_environment method to make sure you set the required
environment variables