use new block functions, remove malloc hack.