changed newline printing so pending will look okay
remove static for module to allow predeclarations