modify current architecture to MAPE architecture