improve specs/template