add init_app method, it is helpful blueprint