hopefully fix tearing, and added esc clk