support for ubuntu, unfinished. before refactoring