the default mode is 'r'.. omitting the parameter results in a exception