doc fix
added extension check