modified deploy:create_config method.