add migrations
added loggable feature