move code from Common to FEAkka