added upperbound on request length
adjusted limits on request length