fix trail for windows.
add snippets