make sure we return status also for errors