pulled misc-fns -