restore backward compatibility

d3096819f6a70c107399fbcf2df23718098c926e changed constructor signature. Add a backward-compatible one