preparing to change this to a sync task