fix trigoniometrics for drawing line
fix drawing order of types
fix import codepath