better logger, remove some print and stuff