add new files and change addpackettosendingqueue