adding constructor for backwards compatibility