separated handlers away from routes