some prelim work