added handling of run statuses