fix numLines calculation, added FIXME