packet loss added as command line option