changed file output type to ns_file