generate relations into separate ns