added name kwarg to init_app