temporary fix for form param decoding. Need more working and testing