added metadata parser WIP(need to be tested)