modify application to model based behavior.