allowing configs via env variables, and option to reset code