adding code_failure support