upgrade architecture. add mode 3 and mode 4