light switch reader-writer solution