client can specify profile via command line argument; redefine concept of 'queue empty'