merged in N arms functionallity