set up environment