Module template rewrite + module YAML structure