fixed token/debug flags