fixed MissingApiToken error, and also protocol error