modified the broadcast to use command line arguments