having issues with lseek