added g2o based solver