cleans up logging significantly