error handling of faulty data
script to cleanup data and fetch metadata