added print-fn binding to client