use fail/done instead of deprecated error/success