parsing placeholder selectors
handling nulls a little better