initialize script for manage foreign package