added exit status printing + ret value fix