fixing memory pinning support
updated
updated