latest attempt at status logic