use heap instead of glibc