refine session_spec, finish profile_spec