added debug for options