off by one issue
off by one issue in pkg-ld-insert too