cleanup: drop a bunch of useless 'extern' keywords
todo: planning update