improve output by adding status code