fixes for yaml writing, duplicate params