tweaks to app approval code. fixes #89