implemented max options and related events