setup base structure