added support for hamlc