fix deploy, env should be a kwarg