log messages added
output improved