create an generic structure, remove routs from app.py