impore notification on Mac OS X
refactor