rewrite getremote list using json
fix bugs on matching mylist
add os detection