add missing size command and optimization flags