fixed state typo
added error reporting
added growl notification