use new API
use new api
rework API for simplification of SWIG interfaces