hook up server commit function