logic for parsing texts to server
fixing merge conflicts 2