seperate part of proxy logic from box.py
seperate relay logic part from box.py