fixed logging, added Frame support to Element class.