added backwards compatibility