add sanity check to see if we have an application