some approvements in interface.shelf and ybox.py