check return value of remote scripts