onRun can be a path relative to appDir (for compat json and yaml). Todo make same modification for auth