WP: added component sub generator