Is it possible to determine what is causing the error? I've printed the $clientid and it returns a correct reference (at least the same as went in the other side when the function was called)...and the function works perfect for 17 out of the 20 functions...the clientid doesn't seem to be part of the error and I don't know what else would cause sysread to fail.