add support delegates to prevent error message in swift.