add script to build public method