init for dealer, cleanup