working on cluster submission functions