wrapper function apply_ipcluster