check debug flag on app