move check for cluster files up to correct position