arguments to path.resolve must be strings