chnges to register resource