token serialization & entry point