adding destroy, pause and resume