added reference selector proof of concept