fail_function

added ability for functions to fail based on module