serializes metadata form properly