How to help ex-offenders stay out of prison