fix compile error and add in all scripts