added the ability to list from a file instead of from hardware