attached swig ref: app.swig