add mas script and move apps to own script