by ziggzhang

add adaptdation code for arc and mrc