logging and some more gui