better constructors for selector types, bug fixes