move ISelectFields out of api