add dynamic swig inherit