added shape.popup, tried to improve debugging