better detect, incase it fails during process