started implementing logic to read from server