removing old heaplayers code
replace heaplayers with newer version
fix formatting string warnings with clang