compatibility constructors for old apis