Improve notify support

with an ugly look....
Is return app at the end of func register_routes necessary?