fixed bug in tail command and added tcpdump command