fix warn msg to take the shard and index into account
s/suffix/prefix
move to debug logging for legacy output
use DISTIBUTOR_KEY constant consistently
fix imports and comments