at last it should release the CR lock on ack instead of message according to the protocol change
debug: set the length of each resource