tweak readout error handling; improve readability
fix port name conflict