fixed file writers - now can call dll for writing
clean up