move invoke later shit into document manager