first commit, ripped of from Gearsystem