ensure int from url