add draw with traces functionality.