messages are now sent when a spark connects, also fixed a few small bugs