remove unused method
fix upload bug
change view engine from jade to swig