commit for the evening: works ok, looks bad, gui needs improvement