fixes for app_path prefix