correcting file path for before snippets