update frame management
update recording timing