use sync event for debug