fix pause feature, fixes #10