added nowrite option