initial version
handle multiple files