increased buffer for sErrmsg to avoid stack smashing