refactoring: slots and slot from server
slots handles some exceptions