master.py: vairious stupid errors fixed preventing it from launch