added support to allow opening remote files