add logs, fix missing import in shell.py