move template write back before service definition
bump version to 1.2.1