fix menu in main.py
update build script
fix starting threads