add suspend and resume method for device