Numerous small improvements in krpc