fixes for phantomJS support