make sure we get the return code as well