fixed package tangle, array problems