library now manages host memory