added option to invertXY for overlaying tracks