use file put contents instead