a scala port of hystrix