code simplified and central getRevisionDir method introduced