added before script for solr