version history; added print by line support