add useful utilities for hp2sm