refactored the message lib a little bit. status and working messages are now set up correctly with propert event emitting.