added pause and resume on serverside