Inline failure in cases

fix for #260 
Inline case - failure functions