changing constructor params order to guarantee back-compatibility