improvements on low-level inteface of extension modules.