remove unsued code, logger structure