msgsize must be string type