Don't shadow builtins

Using 'f' as variable name here is fine, as the context is only 2 lines.
Cope with connectivity issues

This can probably be improved .. e.g. show a placeholder