copy script from IMP