updated to use new coords protocol.