checnged console tester and directoryentry class