implemented exten keyword, properly handle bit-mask extensions