made constructor backwards compatible