modularize stuff in the app object