added debug flag to frontend app