added ability for template overrides, fixes #31