implementation of token, profile, and workspace management