allow inheritance from class directly for factories