starting main handler

starting main handler