minor fixes, prime output