fixed notifications on OS X, other small fixes