add types and user data api