update to latest Paste package, fix templates