Revert "remove old code from parser.draw"

This reverts commit 11b3957c68238adaa87dd43ed6e365d9929208c6.