enhancing logging and global output