move hbs to swig