add sync on wait