extract base for setup