added "graphics" and "text" parameters