readparams and usage