remove debug messages
fixed video recording bug