properly support board resizing