modified test_reader test_writer shell scripts