update execute_function to create group if not exists