added parsing of params for GET