free and malloc hooks working, some of prototype stuff taken out temporarily