use signature to control debug flag