updates to allow for hidden and documents directories.