initial environment/input code