removed block for wait_read_frame