load config from yaml. accept environment as argument