preliminary support for c extensions