added explicit exit code