resolved protocol error and some errors with the params.pcs