changed message format, improved errors handling, added API versioning