updated read function to include stage field