inline everything into main