file checking to enable concurrancy-ish