ref_spec cleanup
ref_spec to join baby steps
got ref spec using joins