kalua: file: lines() fix this function and use it at same places