send debug flag to frontend