move code to new extended community API, may well be very buggy