mega handler fn app-handler supports multiple apps