added cmph library wrapper