converstions to allocation wrappers, use calloc instead of malloc+memset,