fix response returning, still need to fix dealing with invalid and expired tokens