added ability to decode parameters