change tutorial implement to be usable in production environment