added backwards-compatible constructor