move most things to new regestration method and added logger helper.