add compile_extract script