added file deletion to packages; updated message handling