use regisgtry in profile