some optimisation for import metadata