added hardWrap option