file structure change and add regsiter handler method