removed external lib and reduced memory overhead of mempools