add accept
fixed empty event not work
update
improved
add media api but not complete