turn document constructors into cont constructors