hook file check in