fix compile error etc