allow maxHours as a query parameter