fixes so file_get_contents() works again, and some more