add paramer check for dealer
a small logger