Fixes accept/reject all #841
Fixes #841 , pending changes are accepted on correct order
remove print
FIxes #844
Make sure it works under ssl #844