actually register resources