minor
improved scaType detection 
improved compareFields