arch refactoring; http 302
simplify hash module
coding style