optimize process of arg read