add method to deal with package name