decode fields unless its the value field, resolves #3