adding exit code for status