adding consolidate + swig