fixes for long strings