fixing logging so numbers are passed as numbers