compute registration order

- added a placholder for reading keys from a file (FATE#316796)