adjust package logic