added code for pm-suspend and pm-hibernate