conversion of http://www.garagegames.com/community/forums/viewthread/60557 issue  #485