return id instead of directory object, as method name suggests