refresh via server endpoint and use directory rather than single file