fixed records and get/set_mode