method refactor
replaced token generator library
test protect added
removed hero dependency