be able to specify an output file + update doc