using template, rm default ref and add gziped assets