adding ability to retrieve error code/status from an executed command