todone
fix undefined init in list
proper --bare handling in list