closes #251 also deleted detele_token function since didnt exist