added in eof newlines where needed
format now requires block