fixing file requires 

toBuffer is "tobuffer" in certain places, causes issues on linux environments