moved status enum into seperate type