update machine command handler