fixing packaging and status comparison to take into account of 304===200