got scale detection working