maked main handler