use document folder instead of document for equality checks; prepare to
use mellite inside sysson