changes in metadata.py, added file inspection for payload data