add repository and update tools version
add root dir definition to avoid compile error