add support for init/finit (constructors and destructors)