setup environment and initial configaraion