added minimum client version check