modify end and wh snippet, add _file snippet