whatIf param will now given to functions
checkfiles will no be called sycnchronouslsy