Before calling boot method seems not be right. I have made the experience that I need it before calling register.