Add an API call to check wether io is remote
Fix shameful bug