add support for local file endpoint. Fix #94