need to explicitly convert to a string otherwise files get a trailing '/' at their end making them look like a non-exstant directory