move checking to synctask
move checking to after sync task gets file but before it returns