should now write miscparams correctly