error checking for broken app