adding component-dir setting