separate base and main