Maybe you still need to figure out dir, but not the fragment.