change logger settings and make model classes serializable