updated the script and makefile for the core