initialize environment