refactor using Promise
fix all.jade
fix name
remove unused code
fix all