cleaned up fields for json, added publication into json message