added old init method for backwards compatibility