style fixes and now notifying users when errors happen