bugfixes for %c in stats, update entry point