invalid call to script wsFunctions.php