return more error codes in direcotryDAO