reconsitution for script plugin