error handling
use base64 for device id. add device id in error report
use md5 as deviceid