adding limited support for read only files