change main handler