this time I temporarily fixed moussedef
code cleanup
wokring on input
fixed connectedunits