pathname should be required