directory should have a trailing slash