updated model -> removed problem with reading the model on startup
updated to new API
StateChart not working currently