fix reading of params