make stuff private
add a mode to popup references