done some refactoring to work in ubuntu
4x10 fixes, gui updates