update code to make it work with chosen 1.0 release