refactor apps.sh after reboot trials