add new file hook