api plug initialization helper for sub classes