added basic drawline support