allowed arbitrarily nested directories
removed unneeded console.log