move the hash into the directory method where it belongs