fix return codes (#23)