make loki its own package