added device and avatars functionality