implemented search for data directory;
tweaked some debugging messages