moved directory.cpp