move code to nats folder