added first iteration of sync and poll