return value changed from ok to appropriate message type.