added controllers in separated files and graceful shutdown handler