improve cse
sin/cos graph
improve external variable load