added legacy constructor for simplicity