make sync take engine as arg and make conn after spy