read parameters from request