results formatting stuff for scripts