separate loki_recovery.c from main loki binary/lib sources