using segments instead of "path add"
added: handle in and out per point