ease debugging and fix encoding issues