fix compile.....and eliminating custom script