restored original create file instead of append