properly handle return codes