updated for newer versions of heka