fix server
remove unused file
move ts file
refactoring