fixed read_only mode