added logging setup, custom jinja loaders, custom exception handlers