allow using function as swith between sync methods