fixed bugs, added delete package