hook up the --readonly flag