start writing inventory. maybe can use reflection?