completed core script