added registration handler