add TODO re replace cat by reading the lines from a file object instead
remove call to whoami
re-add whoami via Popen and split whoami and linecount sections apart