enhanced secret token processing