ATTENTION: ugly append_attributes added to stateless control, replaces set_attributes -> maybe improve