device resource now works