added some scripts for preparing reference