fix model, add logger