renamed encondig getter/setter methods
improved factory class