updated SGScript, merged cppbind support