convert pathname to string to call include