merkle: added new functions