merge of load_cardlib and trunk_left