compile before sync