Refactor + add 3 tries when searching for element

modified:   src/rxconnector.py