add pretty print script, merge commands into unified script