break app-manager plugin into multiple files