input and output for apcluster