fixes #4459 - add main_app to root_path reference