makedprime improvements