improvements in path drawing