add extension and reconfigure core lib