add compiled document