debug and add options