make bios have appropriate data and fix expand logic