made 3 states (2 raw) reworked Fragments, reworked Connection class