add convenience script for dropping index
fix import mapping after introducting metadata directory