first pass at a ceres wrapper