snprintf works sometimes now. seems to break on larger numbers