Refactor Plugin process initialization
add TODO