document resource packaging/loading