works with arguments, wellfmed out file