add debug flag to app