prepare environment