better functioning component and state queries