moved resource registration