add remote functions to set callbacks / set cert check