added debug modes