better error checking for API tokens
show the full object when there's an error
convert booleans to real boolean values