add canCompile method to node api