set up message directive