might want to check for data.status or have a fail check