added requirement for preload document
converted ref into a property