sets up environment