add ace_mode for c