get reading from server to actually work and refactor code to be ready for distributed tasks