model structure; logging