add options and debug view