added readchip
fixups for log output
changed mode