use stdclass as context object.