make parseSequoiaToken free from side effects