add function to decode tokens
fix
fix
fix & reduce log