fix thread pool not waiting
add component manager
add remove component method to component manager