updated params parsing.