modify scanner to return token position