add pick fields code
feature complete now, at least for demo.