messaging model and services layer finished