added snappy compression for avro
made serializer paradigm better