implemented response parsing, sending and serialization (probably still a little buggy)