add class- and method-level timeouts