move INI loading to bindings and separate document resource loading into two steps