extension check for scripts