device and session resource