added MessageManager. added debugging function to KSPool