added the cluster submission functionality