was not passing all params to the file creation fixes #466