bug fixing of reading input args