fixes for phantomjs, ruby, and pik