more random hanging changes, read frame sizes properly