only write if there are arguments defined. closes #1