added multi-file capability