added on_pause and on_resume; ...need to clean up after all dependencies are fixed by now..