added istanbul for test coverage