add handling for files currently in use