rework logging
logging, commandline interface