add extension check for easy code import