fixed config.ru and check for notification count