fixes for Julia 0.2, still going to completely replace the console code soon.