new init method with option to use default input format