remove unused files and add a API for wenjun's server