workaround for possibility of a phantomjs crash...for now