separate registering into a different file