without this check we kill the directory autoload