corrected directories with trailing slash