production.yml for thin server and code refactoring