bug fix
minor changes in reading output