started using swig blocks