fixed connection and notifying bugs..