adds suspend and resume