extracting user metadata into separate file