removed prefetch related since it fails on invalid ctypes