added types to logging