added conection management to config.ru