clean up and finish set up environment