add env, update logger