add default-value and serialize to inputs