make session_sc a bit more generic