extend c++ method to script.