add string return for component function option