added protocol id and tweak the machine