add getcwd and ifstream