correct parameter units in regex read
cleanup