added support for drawing segments