added insertion type controled by config.h