minor cleanup
fix using precompiled templates (fixes #43)