undetermined length is -1, cleanup of #195