debug: set read-write mode