adding generic object handler