gets routing key from parameters