portal should send debug flag