updated package and csv parsing