added __get for backward compatibility
refactoring