docompile now async.