finishes implementation of nested directories