fixed readEPParameters