add script for compile nas