seek before returning file handle