add method to execute remote functions