some refactor

main code moved to pad_lines()
added support for fetching stats from multiple pads