mbg code sync