merged exceptions and function calls