promote select into its own file
implicitely adding grouping variables. closes #170