some code cleanup to remove compiler warning, fixing a bug with component names function get_comp_name()