slave token generation