build with seg draw improvements