added command-line file support to wrap