fixed bug in writing to local dir and s3
removed nonsense options to not write