add read only mode for demo