log output
more fixes and nicer output