comment was more clear once I saw that "sync_apps" is a huge, ugly function :-)