simplified extension check in classmap generation