use newer style for calling class methods
fix tests