#367 add presence support