fixed some bugs with args parser