helper utility to check the application status