allow selection of profiles from profile list
and other related fixes