add choosepath in lua