adding some logic to get status code from args
remove config file option for now