fix and move options to writing