bitcoin gui is not what  I need, so I start with quite substantial refactoring