core: execution class needs document object instead of medusa(core) object