removed default_environment, fixed param order