added length of msg to manager