add getips method