writetometadatafile method added