implement save_to_lvar, load_lvar