code tideup and parameters load bug fixed