some optimisation for import metadata
Merge branch 'develop' into 1.x-stable