create sample project && fix compile