bugfixes and readDict method