implemented seek & ioctl