changing BT.curDir to __dirname, adding optional extensions for the framework configuration