some drying and nicer logging