-support repository based distribution file to support global state settings. we support the per smage method too, but it gets overriden by the global setting