some more work on the main-programm