add swig and orm