adding support for apps within apps, fixing a really dumb mistake with reloading