main to registerHandlers
why require doesn't work