removed commented code, modified marry so it doesnt use isMetadataPath anymore, but kept the method in incase it becomes useful to some future person