template tweaking and script for dealing with annoying paths