add main to component def