moved scriptapi.h to src directory