gras: moved debug prints to element base class