refactoring

replace some files
client

typescript client