code to build a new extension