made get library accept a dynamic limit