add file variable to snippets