implemted progress notification. Not working in OS X