added a proper logger